package g

import (
	dapr "github.com/dapr/go-sdk/client"
)

const (
	RedisStore = "redis-store"
)

var (
	DaprClient dapr.Client
)

func InitDapr() (err error) {
	DaprClient, err = dapr.NewClient()
	if err != nil {
		return err
	}

	return nil
}

func DaprClose() {
	DaprClient.Close()
}
